package com.woniuxy.test;

import com.woniuxy.springboot02.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JavaConfig {
    @Bean("u1")
    public User getUser(){
        return new User(18,"张三");
    }
    @Bean("u2")
    public User getUser2(){
        return new User(22,"小明");
    }
}
